package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(100)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	Nid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Depot struct {
	gorm.Model
	DepotName    string `gorm:"type:varchar(30)"` //仓库名称
	DepotType    string `gorm:"type:varchar(30)"` //仓库类型
	DepotContent string `gorm:"type:varchar(30)"` //仓库容量
}
type DepotOrder struct {
	gorm.Model
	OrderCode  string `gorm:"type:varchar(30)"`  //订单编号
	OrderNum   string `gorm:"type:varchar(255)"` //订单数量
	OrderPrice string `gorm:"type:varchar(255)"` //订单价格
}
type DepotOrderList struct {
	OrderId      int
	DepotName    string //仓库名称
	DepotType    string //仓库类型
	DepotContent string //仓库容量
	OrderCode    string //订单编号
	OrderNum     string //订单数量
	OrderPrice   string //订单价格
}
